class FilmRecord {
  final int? vodId;
  final String? vodName;
  final String? vodPic;
  final String? vodRemarks;
  final String? watchProgress;
  final String? timeField;

  FilmRecord({
    this.vodId,
    this.vodName,
    this.vodPic,
    this.vodRemarks,
    this.watchProgress,
    this.timeField,
  });

  factory FilmRecord.fromJson(Map<String, dynamic> json) {
    return FilmRecord(
      vodId: json['vod_id'] as int? ?? 0,
      vodName: json['vod_name'] as String? ?? '',
      vodPic: json['vod_pic'] as String? ?? '',
      vodRemarks: json['vod_remarks'] as String? ?? '',
      watchProgress: json['watchProgress'] as String? ?? '',
      timeField: json['timeField'] as String? ?? '',
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'vod_id': vodId,
      'vod_name': vodName,
      'vod_pic': vodPic,
      'vod_remarks': vodRemarks,
      'watchProgress': watchProgress,
      'timeField': timeField,
    };
  }
}
